<?php
/**
 * Created by PhpStorm.
 * User: zhangmpy
 * Date: 2018/8/4
 * Time: 下午11:19
 */

namespace App\Http\Controllers\Web;


use Endpoints\Article\IndexArticle;
use Endpoints\Article\ShowArticle;
use Endpoints\Tag\IndexTag;
use Illuminate\Http\Request;
use Laravelladder\Core\Controllers\BaseController;

class HomeController extends BaseController
{
    public function index(Request $request){
        return view('compare/index');
    }

    public function compare($uri){
        $url = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
        $jdUrl = 'https://'.str_replace('bijia','',$url);
        return view('compare/show',['url' => $jdUrl]);
    }


}